package edu.isquen.core.form.action;

import java.util.Date;

import edu.isquen.core.base.action.BaseAction;
import edu.isquen.core.form.model.Form;
import edu.isquen.core.form.service.FormService;
import edu.isquen.util.factory.ServiceFactory;

public class FormAction extends BaseAction<Form> {

	private static final long serialVersionUID = 663031298771048623L;
	
	public FormAction() throws Exception {
		super(ServiceFactory.createProcess(FormService.class), new Form());
	}
	
	public String doSave(){
		Form form=(Form) this.getValObj();
		form.setLastModifyDate(new Date());
		setValObj(form);
		return super.doSave();
	} 

}
